<?php

namespace app\index\model;

use think\Model;

class FileModel extends Model
{
    protected $table = 'newzs_file';

    const DEATYPENAME = '相关附件';


    /**
     * @param $id
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function get_info_by_pk($id){
        return self::where(['id'=>$id])->find()->toArray();
    }


}

